package cn.yougou.pojo;

import java.util.Date;
import java.io.Serializable;

/**
 * (YgUserCoupons)实体类
 *
 * @author makejava
 * @since 2020-12-30 12:33:13
 */
public class YgUserCoupons implements Serializable {
    private static final long serialVersionUID = -90805322276287472L;
    /**
     * 用户优惠表唯一id
     */
    private Integer id;
    /**
     * 关联用户表的id
     */
    private Integer userid;
    /**
     * 关联优惠卷表的id
     */
    private Integer couponsid;
    /**
     * 领取规则描述
     */
    private String getrulestitle;
    /**
     * 优惠规则
     */
    private String couponrules;
    /**
     * 优惠规则描述
     */
    private String couponrulestitle;
    /**
     * 优惠规则条件
     */
    private String couponrulesjudge;
    /**
     * 优惠金额
     */
    private Double couponmoney;

    /**
     * 开始时间
     */
    private String startdate;
    /**
     * 结束时间
     */
    private String enddate;
    /**
     * 0:正常 1：过期 2：删除
     */
    private Integer state;
    /**
     * 过期时间
     */
    private String stopdate;
    /**
    *   实际优惠金额 这个值前端不用传
     * */
    private double DerateResultMoney;
    public YgUserCoupons() {
    }


    public YgUserCoupons(Integer userid, Integer couponsid) {
        this.userid = userid;
        this.couponsid = couponsid;
    }

    public YgUserCoupons(Integer id, Integer userid, Integer couponsid, String getrulestitle, String couponrules, String couponrulestitle, String couponrulesjudge, Double couponmoney,  String startdate, String enddate, Integer state, String stopdate) {
        this.id = id;
        this.userid = userid;
        this.couponsid = couponsid;
        this.getrulestitle = getrulestitle;
        this.couponrules = couponrules;
        this.couponrulestitle = couponrulestitle;
        this.couponrulesjudge = couponrulesjudge;
        this.couponmoney = couponmoney;

        this.startdate = startdate;
        this.enddate = enddate;
        this.state = state;
        this.stopdate = stopdate;
    }

    public YgUserCoupons(Integer userid, Integer couponsid, String getrulestitle, String couponrules, String couponrulestitle, String couponrulesjudge, Double couponmoney,  String startdate, String enddate, Integer state, String stopdate) {
        this.userid = userid;
        this.couponsid = couponsid;
        this.getrulestitle = getrulestitle;
        this.couponrules = couponrules;
        this.couponrulestitle = couponrulestitle;
        this.couponrulesjudge = couponrulesjudge;
        this.couponmoney = couponmoney;

        this.startdate = startdate;
        this.enddate = enddate;
        this.state = state;
        this.stopdate = stopdate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public double getDerateResultMoney() {
        return DerateResultMoney;
    }

    public void setDerateResultMoney(double derateResultMoney) {
        DerateResultMoney = derateResultMoney;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getCouponsid() {
        return couponsid;
    }

    public void setCouponsid(Integer couponsid) {
        this.couponsid = couponsid;
    }

    public String getGetrulestitle() {
        return getrulestitle;
    }

    public void setGetrulestitle(String getrulestitle) {
        this.getrulestitle = getrulestitle;
    }

    public String getCouponrules() {
        return couponrules;
    }

    public void setCouponrules(String couponrules) {
        this.couponrules = couponrules;
    }

    public String getCouponrulestitle() {
        return couponrulestitle;
    }

    public void setCouponrulestitle(String couponrulestitle) {
        this.couponrulestitle = couponrulestitle;
    }

    public String getCouponrulesjudge() {
        return couponrulesjudge;
    }

    public void setCouponrulesjudge(String couponrulesjudge) {
        this.couponrulesjudge = couponrulesjudge;
    }

    public Double getCouponmoney() {
        return couponmoney;
    }

    public void setCouponmoney(Double couponmoney) {
        this.couponmoney = couponmoney;
    }



    public String getStartdate() {
        return startdate;
    }

    public void setStartdate(String startdate) {
        this.startdate = startdate;
    }

    public String getEnddate() {
        return enddate;
    }

    public void setEnddate(String enddate) {
        this.enddate = enddate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getStopdate() {
        return stopdate;
    }

    public void setStopdate(String stopdate) {
        this.stopdate = stopdate;
    }

    @Override
    public String toString() {
        return "YgUserCoupons{" +
                "id=" + id +
                ", userid=" + userid +
                ", couponsid=" + couponsid +
                ", getrulestitle='" + getrulestitle + '\'' +
                ", couponrules='" + couponrules + '\'' +
                ", couponrulestitle='" + couponrulestitle + '\'' +
                ", couponrulesjudge='" + couponrulesjudge + '\'' +
                ", couponmoney=" + couponmoney +

                ", startdate='" + startdate + '\'' +
                ", enddate='" + enddate + '\'' +
                ", state=" + state +
                ", stopdate='" + stopdate + '\'' +
                '}';
    }
}